export const EGlobalStoreIntention = {
    None: 'None',
    Create: 'Create',
    Move: 'Move',
    MoveCanvas: 'MoveCanvas',
    Select: 'Select',
    Zoom: 'Zoom',
    Rotate: 'Rotate',
    Connection: 'Connection',
    SetConnectionLineNode: 'SetConnectionLineNode',
    ContextMenu: 'ContextMenu'
};

export const EMouseInfoState = {
    Down: 'Down',
    Up: 'Up'
};

export const EScaleInfoType = {
    None: '',
    TopLeft: 'TopLeft',
    TopCenter: 'TopCenter',
    TopRight: 'TopRight',
    Left: 'Left',
    Right: 'Right',
    BottomLeft: 'BottomLeft',
    BottomCenter: 'BottomCenter',
    BottomRight: 'BottomRight'
};

export default {
    config_center: {},
    intention: EGlobalStoreIntention.None,
    create_svg_info: null,
    done_json: [],
    mouse_info: {
        state: EMouseInfoState.Down,
        position_x: 0,
        position_y: 0,
        now_position_x: 0,
        now_position_y: 0,
        new_position_x: 0,
        new_position_y: 0
    },
    handle_svg_info: null,
    scale_info: {
        type: EScaleInfoType.None,
        scale_times: {
            x: 1,
            y: 1
        },
        scale_item_info: {
            x: 0,
            y: 0
        },
        symmetric_point: {
            x: 0,
            y: 0
        }
    },
    rotate_info: {
        angle: 0
    },
    connection_line_node_info: {
        init_pos: {
            x: 0,
            y: 0
        },
        point_index: 0
    }
};
